MVendorOrderCurrentPg.widgets = {
	lvOrderItems: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","startUpdate":false,"type":"com.servicelivedb.data.OrderItems"}, {"onSuccess":"lvOrderItemsSuccess"}, {
		liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.OrderItems","related":["items"],"view":[
{"caption":"OrderItemId","sortable":true,"dataIndex":"orderItemId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":1000,"subType":null,"widthUnits":"px"},
{"caption":"Quantity","sortable":true,"dataIndex":"quantity","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1001,"subType":null,"widthUnits":"px"},
{"caption":"Price","sortable":true,"dataIndex":"price","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1002,"subType":null,"widthUnits":"px"},
{"caption":"Comments","sortable":true,"dataIndex":"comments","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1003,"subType":null,"widthUnits":"px"},
{"caption":"Status","sortable":true,"dataIndex":"status","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1004,"subType":null,"widthUnits":"px"},
{"caption":"DlvrQuantity","sortable":true,"dataIndex":"dlvrQuantity","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1005,"subType":null,"widthUnits":"px"}
]}, {}],
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"listVendorOrders.selectedItem.orderId","targetProperty":"filter.order.orderId"}, {}]
		}]
	}],
	ncOrderStatusUpdate: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Order status updated successfully\"","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	ncOrderUpdateSuccess: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Order Status Updated Successfully\"","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	ncOrderUpdateError: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
				wire: ["wm.Wire", {"expression":"\"Error ocureed during status update\"","targetProperty":"text"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}]
			}]
		}]
	}],
	svUpdateOrderItemStatus: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"updateOrderItemStatus","service":"OrderService"}, {"onResult":"svUpdateOrderItemStatusResult","onSuccess":"lvOrderItems"}, {
		input: ["wm.ServiceInput", {"type":"updateOrderItemStatusInputs"}, {}]
	}],
	svUpdateVendorOrderSt: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"updateVendorOrderStatus","service":"OrderService"}, {}, {
		input: ["wm.ServiceInput", {"type":"updateVendorOrderStatusInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vUserId.dataValue","targetProperty":"vendorId"}, {}]
			}]
		}]
	}],
	svUpdateOrderStatusAll: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"updateMasterOrderStatus","service":"OrderService"}, {"onError":"svUpdateOrderStatusAllError","onSuccess":"svOrders","onSuccess1":"layerOrder","onSuccess2":"ncOrderUpdateSuccess"}, {
		input: ["wm.ServiceInput", {"type":"updateMasterOrderStatusInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire1: ["wm.Wire", {"expression":"true","targetProperty":"isAll"}, {}],
				wire: ["wm.Wire", {"expression":undefined,"source":"listVendorOrders.selectedItem.orderId","targetProperty":"orderId"}, {}],
				wire2: ["wm.Wire", {"expression":undefined,"source":"largeTextArea1.displayValue","targetProperty":"orderComment"}, {}]
			}]
		}]
	}],
	svUpdatePartialOrderStatus: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"updatePartialOrderStatus","service":"OrderService"}, {"onError":"svUpdateOrderStatusError","onSuccess":"svOrders","onSuccess1":"layerOrder","onSuccess2":"ncOrderUpdateSuccess"}, {
		input: ["wm.ServiceInput", {"type":"updatePartialOrderStatusInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"listVendorOrders.selectedItem.orderId","targetProperty":"orderId"}, {}],
				wire1: ["wm.Wire", {"expression":undefined,"source":"largeTextArea1.displayValue","targetProperty":"orderComment"}, {}]
			}]
		}]
	}],
	svOrders: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"getTodaysVendorOrders","service":"serviceliveDB","startUpdate":true}, {"onError":"svOrdersError","onResult":"svOrdersResult"}, {
		input: ["wm.ServiceInput", {"type":"getTodaysVendorOrdersInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vUserId.dataValue","targetProperty":"vendorId"}, {}],
				wire1: ["wm.Wire", {"expression":"\"National Games Village\"","targetProperty":"projectName"}, {}],
				wire2: ["wm.Wire", {"expression":"\"NEW\"","targetProperty":"statusNew"}, {}],
				wire3: ["wm.Wire", {"expression":"\"Partly Delivered\"","targetProperty":"statusPartly"}, {}]
			}]
		}]
	}],
	timerVendorList: ["wm.Timer", {"delay":45000}, {"onTimerFire":"svOrders"}],
	ldOrders: ["wm.LoadingDialog", {"caption":"Loading Orders..","captionWidth":"100px","serviceVariableToTrack":["svOrders"]}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"panel1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	ldOrdersItems: ["wm.LoadingDialog", {"caption":"Loading Order Details..","captionWidth":"100px"}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire1: ["wm.Wire", {"expression":undefined,"source":"lvOrderItems","targetProperty":"serviceVariableToTrack"}, {}],
			wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	loadingDialog1: ["wm.LoadingDialog", {"caption":"Updating...Order Item status","captionWidth":"200px","serviceVariableToTrack":["svUpdateOrderItemStatus","svUpdateVendorOrderSt","svGetVendorCurrentOrder","svUpdateOrderStatusAll","svUpdatePartialOrderStatus"]}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	layoutBox1: ["wm.Layout", {"horizontalAlign":"left","styles":{},"verticalAlign":"top"}, {}, {
		layers1: ["wm.Layers", {}, {}, {
			layerOrder: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"center","themeStyleType":"","verticalAlign":"top"}, {}, {
				panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"center","verticalAlign":"top","width":"100%"}, {}, {
					label1: ["wm.Label", {"align":"center","border":"1","caption":"Orders (Select to view Items)","height":"25px","padding":"4","showing":false,"styles":{"fontWeight":"bold"},"width":"100%"}, {}],
					button1: ["wm.Button", {"border":"1","caption":"Get Latest Orders","height":"40px","imageIndex":26,"imageList":"app.silkIconList","width":"100%"}, {"onclick":"svOrders"}],
					panel2: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"middle","width":"100%"}, {}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"svOrders.isEmpty","targetProperty":"showing"}, {}]
						}],
						buttonNoOrders: ["wm.Button", {"border":"1","caption":"No New Orders For Today Yet!!","height":"40px","imageIndex":24,"imageList":"app.silkIconList","styles":{},"width":"100%"}, {}]
					}],
					listVendorOrders: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false},
{"show":false,"field":"customerId","title":"CustomerId","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vendorId","title":"VendorId","width":"100%","align":"left","formatFunc":"listVendorOrderSummaryFormat","mobileColumn":true},
{"show":false,"field":"comment","title":"Comment","width":"30px","align":"left","formatFunc":"listCurrentOrdersVendorNameFormat","mobileColumn":true},
{"show":false,"field":"customerName","title":"CustomerName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vendorName","title":"VendorName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"status","title":"Status","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"blockName","title":"BlockName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"doorName","title":"DoorName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"price","title":"Price","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"address","title":"Address","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"contactNum","title":"ContactNum","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"orderDt","title":"OrderDt","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"orderId","title":"OrderId","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"projectName","title":"ProjectName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vendor_comment","title":"Vendor_comment","width":"100%","align":"left","formatFunc":"","mobileColumn":false}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"0","minDesktopHeight":60,"styleAsGrid":false}, {"onSelect":"layerOredereItems","onSelect1":"lvOrderItems","onSelect2":"list1Select2"}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"svOrders","targetProperty":"dataSet"}, {}]
						}]
					}]
				}]
			}],
			layerOredereItems: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","styles":{},"themeStyleType":"","verticalAlign":"top"}, {}, {
				panel5: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"center","verticalAlign":"top","width":"100%"}, {}, {
					panel3: ["wm.Panel", {"height":"48px","horizontalAlign":"left","layoutKind":"left-to-right","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
						bCompleteOrder: ["wm.Button", {"border":"1","caption":"All Items Delivered","height":"40px","styles":{},"width":"100%"}, {"onclick":"bCompleteOrderClick"}],
						bCompleteOrder1: ["wm.Button", {"border":"1","caption":"Partial Delivery","height":"40px","width":"100%"}, {"onclick":"bCompleteOrder1Click"}]
					}],
					largeTextArea1: ["wm.LargeTextArea", {"border":"0","caption":"Comments","captionAlign":"center","captionSize":"15px","dataValue":undefined,"desktopHeight":"81px","displayValue":"","height":"50px","mobileHeight":"50px","padding":"0","styles":{"fontSize":"12px"},"width":"90%"}, {}],
					list2: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"border":"1","columns":[
{"show":false,"field":"orderItemId","title":"OrderItemId","width":"100%","align":"left","formatFunc":"list2OrderItemIdFormat","editorProps":{"restrictValues":true},"expression":"\n\n","mobileColumn":true},
{"show":false,"field":"quantity","title":"Quantity","width":"80px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"price","title":"Price","width":"80px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"comments","title":"Comments","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false},
{"show":false,"field":"status","title":"Status","width":"80px","align":"left","formatFunc":"list2StatusFormat","editorProps":{"restrictValues":true},"mobileColumn":true},
{"show":false,"field":"dlvrQuantity","title":"DlvrQuantity","width":"80px","align":"left","formatFunc":"","mobileColumn":false}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"1","minHeight":0,"minWidth":0,"padding":"0,0,0,0","styleAsGrid":false,"styles":{}}, {"onSelect":"list2Select"}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"lvOrderItems","targetProperty":"dataSet"}, {}]
						}]
					}]
				}]
			}]
		}]
	}]
}